home *** CD-ROM | disk | FTP | other *** search
- Path: kettle.magna.com.au!news
- From: John Osborne <josborne@magna.com.au>
- Newsgroups: comp.lang.basic.visual.misc,comp.lang.pascal.delphi.misc,comp.lang.c++
- Subject: Re: "SHOULD I DUMP VISUAL BASIC?"
- Date: Sun, 18 Feb 1996 17:56:34 +1000
- Organization: MAGNADATA Internet Services
- Message-ID: <3126DBB2.5209@magna.com.au>
- References: <4e9g08$3dp@maureen.teleport.com> <Pine.SUN.3.90.960126125658.2477C-100000@menger.eecs.stevens-tech.edu> <sundial.2191.00464727@primenet.com> <DLvxyq.62w@news.hawaii.edu> <4et3p7$79o@cloud9.net> <823335327.28831@williaj.demon.co.uk> <4f8akg$i3k@druid.borland.com> <W1eMJBAdliGxEwNI@pwhite.demon.co.uk> <31224bc4.6786639@news.netonecom.net>
- NNTP-Posting-Host: josborne.magna.com.au
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0b6a (Win95; I)
-
- Pat, et. al....
- The compiled .vs. interpreted debate is partially bogus. Even in
- compiled languages, on a PC or a mainframe, as soon as ones code enters
- a runtime library routine, you are -probably- off into
- interpretation-land.
- I say -probably- because if your runtime routine has any conditional
- statements that cause the routine to act differently depending on
- parameter content (i.e., different logic paths) it is
- "mini-interpreting".
-
- For example, you call the printf routine in -C-, or a formatted -write-
- statement in Fortran, VB's Format$ routine, or just about any
- non-trivial Delphi component, and you are executing an interpreter of
- that language feature. Sure, the printf function in the -C- runtime
- library is compiled, as is the ChartFX component in Delphi, or the
- read/write routines in a Tandem Cobol program, but the runtime system
- has to -interpret- your parameters via lots of conditional statements to
- make sense of your parameters/data and perform the requested action.
- When using VB or other -statement based- interpreted languages, where
- most people suffer a performance hit is doing things like writing their
- own INSTR function -within- VB. Each p-code statement has to be
- interpreted via VBRUNxxx.DLL which is far worse than just using the
- library routine.
-
- Regards, John
-
- viewer wrote:
- >
- > Pat White <pat@pwhite.demon.co.uk> wrote:
- >
- > >In nearly 40 years in computing I've never come across anything in any
- > >language definition that prevents compiling. That includes BASIC which
- > >is where this discussion started and p-code. Likewise, they COULD all be
- > >interpreted, only most companies realise compiling is better. Microsoft
- > >is the exception - they tried and failed badly, anyone remember their
- > >Fortran compiler for the PC. When it compiled without falling over you
- > >were amazed. When you ran the results you were sorry!
- >
- > OTOH, their DOS Basic compilers were fantastic.
-